package com.atguigu.yygh.hosp.mongotest;

/**
 * Created with IntelliJ IDEA
 *
 * @Date: 2022/12/17 - 15:55
 * @Author: Hyoung
 * @Description:
 */

import lombok.Data;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Data

@Document("user") //指定mongodb中的集合名字
@ToString
public class User {


    @Id
    private String id;
    private String name;
    private Integer age;
    private String email;
    private String createDate;
}